Ext.define('Sencha.model.DictionaryTarget', {
    extend: 'Ext.data.Model',
    config: {
        fields: [
                 { name: 'id', type: 'int' },
                 { name: 'targetWord', type: 'string' },
                 { name: 'detailedEntry', type: 'string' }
        ],
        proxy: {
           /*type: 'ajax',
           url: 'app/data/dictionarySources.json',
           reader: 'json'*/
           
           type: 'sqlitestorage',
           dbConfig: {
           		tablename: 'DICTIONARYTARGET',
           		dbConn: Ext.DbConnection
           },
           reader: {type:'array'}
           
        },
        hasMany: {model: 'Sencha.model.DictionarySource', name: 'dictionarySources'}
    },
    writer: {
    	type: 'array'
    },
           

});